import  axios from  'axios'

export default class RecordArchiveslibraryService {
    static recordArchiveslibraryService = null

    static getInstance() {
        if (this.recordArchiveslibraryService == null) {
            this.recordArchiveslibraryService = new RecordArchiveslibraryService()
        }
        return this.recordArchiveslibraryService
    }

    upload1(params){
        return axios.get("http://localhost/aaaaaa",{
            responseType: 'blob',
            params:params
        })
    }


    list(params) {
        return axios.get(`http://localhost/recordarchiveslibrarys`, {
            params: params
        })
    }


    update(params) {
        return axios.put(`http://localhost/recordarchiveslibrarys`, params)
    }

    listNoPage(){
        return axios.get(`http://localhost/recordarchiveslibrarys/listNoPage`)
    }

    del(id){
        return axios.delete(`http://localhost/recordarchiveslibrarys/${id}`)
    }

    setReturned(id){
        return axios.delete(`http://localhost/recordarchiveslibrarys/setReturned/${id}`)
    }

    save(params){
        return axios.post(`http://localhost/recordarchiveslibrarys`,params)
    }

    selectNoRecord(params) {
        return axios.get(`http://localhost/recordarchiveslibrarys/selectNoRecord`, {
            params: params
        })
    }

    selectOne(id){
        return axios.get(`http://localhost/recordarchiveslibrarys/${id}`)
    }

    selectNoRecord2(params) {
        return axios.get(`http://localhost/recordarchiveslibrarys/selectNoRecord2`, {
            params: params
        })
    }
}